package com.imooc.reflect;

import java.util.DoubleSummaryStatistics;

/**
 * Created by joe on 16-7-30.
 */
public class ClassDemo2 {
	public static void main(String[] args){
		//一般只要是属于是类中的信息都会有类类型
		Class c1 = int.class;//int的类类型
		Class c2 = String.class;//String类的类类型
		Class c3 = double.class;
		Class c4 = Double.class;
		Class c5 = void.class;

		System.out.println(c1.getName());
		System.out.println(c2.getName());//带有包名
		System.out.println(c2.getSimpleName());//只有类名
		System.out.println(c3.getName());

	}
}
